
def longestSubsquence(arr,difference):
    pass